<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>学生宿舍信息</title>
    <link rel="stylesheet" href="static/css/bootstrap.min.css">
    <script src="static/jq/jquery.js"></script>
    <script src="static/js/bootstrap.min.js"></script>
</head>
<body>

<nav class="navbar navbar-expand-sm bg-light navbar-light"
     role="navigation">
    <div class="container-fluid justify-content-end">
        <ul class="navbar-nav">
            <li class="nav-item"><a class="nav-link" href="${pageContext.request.contextPath}/login">登录</a></li>
        </ul>
    </div>
</nav>
<div class="container">
    <div class="row">
        <h1>学生宿舍查询</h1>
    </div>
    <div class="row">
        <div class="col-md-4"></div>
    </div>
    <div class="row">
        <div class="col-md-4"></div>
        <div class="col-md-5">
            <form id="form_submit" action="${pageContext.request.contextPath}/welcome" method="post">
                <div class="input-group">
                    <input id="input_text" type="text" class="form-control" name="number" placeholder="Search for...">
                    &nbsp;
                    <span class="input-group-btn">
                        <button id="btn_submit" class="btn btn-primary" type="submit">
                            提交
                        </button>
                    </span>
                </div>
            </form>
        </div>
        <div class="col-md-3"></div>
    </div>
    <div class="row">
        <table class="table table-striped">
            <tr>
                <td>#</td>
                <td>学号</td>
                <td>姓名</td>
                <td>性别</td>
                <td>宿舍楼</td>
                <td>宿舍</td>
            </tr>
            <tr>
                <td>${stu.getNum()}</td>
                <td>${stu.getNumber()}</td>
                <td>${stu.getSname()}</td>
                <td>${stu.getSex()==1?'男':女}</td>
                <td>${stu.getCdorm()}</td>
                <td>${stu.getSdorm()}</td>
            </tr>
        </table>
    </div>
</div>
</body>
</html>
